/**
 * 作者: wgx
 * 日期: 2025-06-11 10:50:23
 * 备注: 服务器战区分组配置
 */
package com.motu.monstercity.module.common.servermanager;

import io.vertx.core.json.JsonObject;

public class ServerGroupModel {
    protected int serverId; // 服务器ID
    protected int warZone; // 战区
    protected int warZoneOld; // 战区旧数据 (比对用)

    public ServerGroupModel() {
    }

    public ServerGroupModel(JsonObject obj) {
        serverId = obj.containsKey("server_id") ? obj.getInteger("server_id") : 0;
        warZone = obj.containsKey("war_zone") ? obj.getInteger("war_zone") : 0;
        warZoneOld = obj.containsKey("war_zone_old") ? obj.getInteger("war_zone_old") : 0;
    }

    public int getServerId() {
        return serverId;
    }

    public int getWarZone() {
        return warZone;
    }

    public int getWarZoneOld() {
        return warZoneOld;
    }

}
